package cn.bluarry.donationuser.mapper;

import cn.bluarry.donationuser.pojo.Donation_User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UserMapper {
    int insert(Donation_User item);
    int checkUsername(String username);
    List<Donation_User> ListUsers();
    int updateUserInfo(@Param("username")String UserName, @Param("newusername")String NewUserName,
                       @Param("newcomments") String NewComments,@Param("newmobile") String NewMobilePhone,
                       @Param("newdisplayName")String NewDisplayName, @Param("newemail")String NewEmail
                        ,@Param("updatetime") Date updateDate
    );
    Donation_User getUserInfoByUsername(@Param("username")String username);
    int DeleteUserByName(@Param("username")String username);
}
